package com.ruoyi.system.controller;


import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.dto.AthleteNameDateDto;
import com.ruoyi.system.service.AthleteScoreService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/athleteScore")
@Api(tags = "运动员成绩接口")
public class AthleteScoreController {


    @Autowired
    private AthleteScoreService athleteScoreService;

    @ApiOperation("运动员成绩绘制箱线图")
    @PostMapping("/drawBoxplot")
    public AjaxResult getAthleteScore(@RequestBody AthleteNameDateDto athleteNameDateDto){
        //return AjaxResult.success(athleteScoreService.getAthleteScore(athleteNameDateDto));
        return AjaxResult.success(athleteScoreService.getAthleteScore(athleteNameDateDto));
    }


}
